import React, {Component} from 'react';
import './Button.scss';

class Button extends Component {
  // constructor (props) {
  //   super(props);
  // }
  static defaultProps = {
    color: 'default',
    children: '确定'
  };
  render () {
    const {color} = this.props;
    return (
      <button className={`btn btn-${color} ${this.props.className}`} style={this.props.style}>
        {this.props.children}
      </button>
    );
  }
}

export default Button;
